﻿<UserControl x:Class="TheVerge.Phone.Controls.SuperImageControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:con="clr-namespace:TheVerge.Phone.Controls"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
             x:Name="superImageControl">

    <Grid>
        <Image x:Name="img" Source="{Binding ElementName=superImageControl, Path=Source}" ImageOpened="Image_ImageOpened">
            <Image.RenderTransform>
                <CompositeTransform x:Name="transform" />
            </Image.RenderTransform>
            <toolkit:GestureService.GestureListener>
                <toolkit:GestureListener 
                    PinchStarted="OnPinchStarted" 
                    PinchDelta="OnPinchDelta" 
                    DoubleTap="Image_DoubleTap"
                    DragDelta="GestureListener_DragDelta" />
            </toolkit:GestureService.GestureListener>
        </Image>
        <con:FadeGrid x:Name="overlay" Visibility="Collapsed">
            <Image x:Name="overlayImage" />
        </con:FadeGrid>
    </Grid>
</UserControl>
